<%--
  Created by IntelliJ IDEA.
  User: wangh
  Date: 2020/12/24
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <!-- 使用Edge最新的浏览器的渲染方式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- viewport视口：网页可以根据设置的宽度自动进行适配，在浏览器的内部虚拟一个容器，容器的宽度与设备的宽度相同。
    width: 默认宽度与设备的宽度相同
    initial-scale: 初始的缩放比，为1:1 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>电脑销售平台</title>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
    <link href="css/back.css" rel="stylesheet" type="text/css">
    <link href="css/public.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="css/others.css" type="text/css">
</head>
<body>
<div class="logoBar"
     style="height: 75px;background: #1d7ad9;font-size: 35px;font-weight: bolder;padding-left: 100px;padding-top: 12px;color: white;">
    笔记本电脑详细信息
</div>
<div id="back" style="text-align: center;padding-left: 0px;"><a
        href="${pageContext.request.contextPath}/index.jsp">返回</a></div>
<h1 align="center" class="title">${Good_InfoByCid.cname_no1}</h1>
<hr>
<!--主体部分-->
<div class="warp">
    <div class="goods">
        <div class="show">
            <img src="${Good_InfoByCid.cimage}" alt="" style="width: 550px;height: 279.8125px;text-align: left;">
        </div>
        <div class="content">
            <div class="buy">
                <p class="title">${Good_InfoByCid.cname}</p>
                <p class="explain">${Good_InfoByCid.cname_no2}</p>
                <div class="price">
                    <c:if test="${Good_InfoByCid.cdiscounte==10}">
                        <p class="jb">价格：<b>${Good_InfoByCid.cprice}元</b></p>
                    </c:if>
                    <c:if test="${Good_InfoByCid.cdiscounte!=10}">
                        <p class="jb">折扣价：<b>${Good_InfoByCid.cprice*Good_InfoByCid.cdiscounte/10}元</b></p>
                        <p class="yj">原价：￥${Good_InfoByCid.cprice}元</p>
                    </c:if>
                    <p class="yj">剩余数量：${Good_InfoByCid.cname}</p>
                </div>
                <div class="comment">
                    <div class="tip">商品详细介绍：</div>
                    <p align="center"><textarea disabled cols="48" style="width: 580px;" rows="5"
                                                placeholder="${Good_InfoByCid.cintro}"></textarea></p>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="color">
    <div class="in">
        <a href="${pageContext.request.contextPath}/OrderInfo.jsp?sid=${Good_InfoByCid.cid}&suserid=${user_login.id}"><input
                type="button" value="立即购买" id="buy"></a>
        <a href="${pageContext.request.contextPath}/catchUserGoodInfoServlet?sid=${Good_InfoByCid.cid}&suserid=${user_login.id}"><input
                type="button" value="加入购物车" id="addShoppingCar"></a>
    </div>
</div>
</body>
</html>
